<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"  isELIgnored="false"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="keywords" content="拖拽特效,表格拖拽,自由排序,表格排序,列排序,JS特效"/>
<link href="css/columnDrag.css" rel="stylesheet" type="text/css"/>
<title>成绩查询</title>
</head>
<body  class="keBody">
<h1 class="keTitle">成绩查询</h1>
<div class="kePublic">
<!--效果html开始-->
<div id="chenkbox">
<div id = "headbox">
<span style="float:left;">姓名：${stu_name}</span>
<span style="float:right;margin-button:2px;">
学期：
<select class = "ui-choose" id = "uc_02" onchange = "alterSclasstable(this[selectedIndex].value)"> 
<option  value="1">大一上学期</option>
<option  value="2">大一下学期</option>
<option  value="3">大二上学期</option>
<option  value="4">大二下学期</option>
<option  value="5">大三上学期</option>
<option  value="6">大三下学期</option>
<option  value="7">大四上学期</option>
<option  value="8">大四下学期</option>
<c:choose>
<c:when test="${g_id == 1}">            
<option value="1" selected="selected">大一上学期</option>            
</c:when>  
<c:when test="${g_id == 2}">            
<option value="2" selected="selected">大一下学期</option>            
</c:when>              
<c:when test="${g_id == 3}">            
<option value="3" selected="selected">大二上学期</option>            
</c:when>            
<c:when test="${g_id == 4}">            
<option value="4" selected="selected">大二下学期</option>            
</c:when>    
<c:when test="${g_id == 5}">            
<option value="5" selected="selected">大三上学期</option>            
</c:when>
<c:when test="${g_id == 6}">            
<option value="6" selected="selected">大三下学期</option>            
</c:when>
<c:when test="${g_id == 7}">            
<option value="7" selected="selected">大四上学期</option>            
</c:when>
<c:when test="${g_id == 8}">            
<option value="8" selected="selected">大四下学期</option>            
</c:when> 
</c:choose></select></span>
</div>
<table id="tableSort" >
    <tr id = "ft">
          <th onclick="sortTable('tableSort',0)" title="点击排序" > 课程名 </th>
          <th onclick="sortTable('tableSort',1)" title="点击排序"> 授课教师 </th>
          <th onclick="sortTable('tableSort',2)" title="点击排序"> 学时</th>
          <th onclick="sortTable('tableSort',3)" title="点击排序"> 学分</th>
        </tr>
          <c:forEach items="${course}" var="user">
           <tr>
          <td>${user.c_name}</td>
          <td>${user.tea_name}</td>
          <td>${user.c_time}</td>
          <td>${user.c_point}</td>
          </tr>
 		</c:forEach>   
  </table>
  <div id="box"></div>
</div>
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<script src="js/columnDrag.js"></script>
<!--效果html结束-->
</div>
</body>
</html>